<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form>
    {% csrf_token %}
    <select name="listl" id="">
        {% for i in listl %}
            <option value="{{ i.id }}">{{ i.tname }}</option>
        {% endfor %}
        <input type="submit" value="过滤">
    </select>
    <table border="1">
        <tr>
            <td>编号</td>
            <td>姓名</td>
            <td>事由</td>
            <td>状态</td>
            <td>类型</td>
            <td>操作</td>
        </tr>
        {% for i in pagex %}
        <tr>

            <td>{{ i.id }}</td>
            <td>{{ i.stu_name }}</td>
            <td>{{ i.context }}</td>
            <td>{{ i.status }}</td>
            <td>{{ i.type.tname }}</td>
            <td><a href="{% url 'app1:passs' i.id %}">通过</a>&nbsp;<a href="{% url 'app1:pas' i.id %}">不通过</a></td>

        </tr>
            {% endfor %}

    </table>
        <tr>
            <td colspan="4">
                 {% if current_page > 1 %}
            <a href="{% url 'app1:show_Vacate' %}?page={{ current_page|add:-1 }}">上一页</a>
    {% endif %}
        当前页{{ current_page }}&nbsp;
    {% if current_page < max_page %}
        <a href="{% url 'app1:show_Vacate' %}?page={{ current_page|add:+1 }}">下一页</a>
    {% endif %}
</form>
</body>
</html>